package com.hnichr.ump.common.doc.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Attach;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "t_doc_goods_type")
@Schema(description = "商品分类表")
public class GoodsType extends UmpEntity {
	private static final long serialVersionUID = 1103765541065900838L;

	@Id
	@Generator
	@Column(name = "RID", updatable = false)
	@Schema(description = "ID")
	private String id;

	@Column(name = "TYPE_NAME")
	@Schema(description = "分类名")
	private String typeName;

	@Column(name = "SEQ_NO")
	@Schema(description = "序号")
	private Integer seqNo;

	@Column(name = "PIC")
	@Schema(description = "图片")
	@Attach
	private String pic;

	@Column(name = "VALID_FLAG", length = 2)
	@Schema(description = "有效标识")
	private String validFlag;

}
